#include "ThreadPool.hpp"
#include <functional>
#include<unistd.h>
using task_t = std::function<void()>;
int main()
{
    for (int i = 0; i < 5; ++i)
    {
        Pool::ThreadPool<task_t>::GetInstance()->push([]()
                                                      { printf("hello pool!\n"); });
    }
    Pool::ThreadPool<task_t>::GetInstance()->run();
    Pool::ThreadPool<task_t>::GetInstance()->stop();
    return 0;
}